﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoursePack
{
    [Serializable]
    public class Faculty
    {
        #region Data
        private int m_Id;
        private string m_Name;
        private List<Department> m_Departments;

        private University m_Univeristy;
        #endregion

        public Faculty(University _University, int _Id, string _Name)
        {
            this.m_Id = _Id;
            this.m_Name = _Name;
            this.m_Departments = new List<Department>();
        }

        public void addDepartment(Department _Department)
        {
            this.m_Departments.Add(_Department);
        }

        #region Accessors
        public List<Department> Departments
        {
            get { return this.m_Departments; }
        }

        public int Id
        {
            get { return this.m_Id; }
        }

        public string Name
        {
            get { return this.m_Name; }
        }

        public override string ToString()
        {
            return this.m_Name.ToUpper();
        }
        #endregion

        public University Univeristy
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }


    }
}
